package com.chris.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by chris on 2019/2/2.
 * thymeleaf 测试 Controller
 */
@Controller
public class ThymeleafController {

    @RequestMapping("home")
    public String home(ModelMap modelMap, @RequestParam String name) {
        modelMap.addAttribute("name", name);
        return "home";
    }

}
